package world;

import world.block.Block;
import world.block.BlockBedstone;
import world.block.BlockDirt;
import world.block.BlockGrass;
import world.block.BlockStone;
import world.block.BlockWood;


public class Blocks {
	private final static Block[] values = new Block[4096];
	
	public final static Block STONE = Blocks.createBlock(new BlockStone(1));
	public final static Block GRASS = Blocks.createBlock(new BlockGrass(2));
	//public final static Block WOOD = createBlock(new BlockWood(2));
	//public final static Block AIR = createBlock(new BlockS);
	public final static Block DIRT = Blocks.createBlock(new BlockDirt(3));

	private final static Block createBlock(Block block) {
		values[block.getID()] = block;
		block.regestTextures();
		return block;
	}
	
	public static Block get(int i){
		return values[i];
	}
}
